namespace CSharpPro._10._16;

public class Demo
{
    public void TestPrint()
    {
        string[] input = Console.ReadLine().Split();
        
        // 将字符串转换为整数
        int x = int.Parse(input[0]);
        int y = int.Parse(input[1]);
        int z = int.Parse(input[2]);
        int temp;
        if (x > y)
        {
            temp = x;
            x = y;
            y = temp;
        }
        if (y > z)
        {
            temp = y;
            y = z;
            z = temp;
        }
        if (x > y)
        {
            temp = x;
            x = y;
            y = temp;
        }

        Console.WriteLine("从小到大排列的结果为：{0} {1} {2}", x, y, z);
    }

    public void TestPrint2()
    {
        for (int i = 1; i < 100; i++)
        {
            int tens = i / 10;   
            int units = i % 10;  
            
            if (tens != 7 && units != 7)
            {
                Console.Write(i + " ");
            }
        }

    }

    public void TestPrint3()
    {
        for (int i = 1; i <= 9; i++)
        {
            for (int j = 1; j <= i; j++)
            {
                Console.Write($"{j}*{i}={i * j,2}  ");
            }
            Console.WriteLine();
        }
    }
}